<%@page import="com.wanmait.travel.vo.Pager"%>
<%@page import="com.wanmait.travel.vo.Manager"%>
<%@page import="com.wanmait.travel.vo.Scenic"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%
  String path=request.getServletContext().getContextPath();

  %>
<jsp:include page="/managerinc/header.jsp"></jsp:include>
	<section>
		<h2>我的发布</h2>
		<table width="100%" border="1">
		<tr class="listTr">
		<th width="3%">序号</th>
		<th>景点名称</th>
		<th>景点省份</th>
		<th>景点城市</th>
		<th>地址</th>
		<th>开业时间</th>
		<th>闭店时间</th>
		<th>评分</th>
		<th>选项</th>
		</tr>
		
	<%
	 List<Scenic> scenics= (List<Scenic>)request.getAttribute("scenicAll");
    for(int i=0;scenics!=null&&i<scenics.size();i++){
    	Scenic scenic=scenics.get(i);
    %>
    	<tr>
		<td><%=i+1 %></td>
		<td><%=scenic.getName() %></td>
		<td><%=scenic.getProvince().getName() %></td>
		<td><%=scenic.getCity().getName() %></td>
		<td><%=scenic.getLocation() %></td>
		<td><%=scenic.getOpenTime() %></td>
		<td><%=scenic.getCloseTime() %></td>
		<td><%=scenic.getAnding() %></td>
		<td>
	
		<a href="<%=path%>/ScenicController?action=delete&id=<%=scenic.getId() %>">撤回</a>
	
		<a href="<%=path%>/ScenicController?action=recover&id=<%=scenic.getId() %>">发布</a>
	
		<a href="<%=path%>/ScenicController?action=edit&id=<%=scenic.getId() %>">修改</a>
		
		</td>
		</tr>
		<%
		} 
		%>
		</table>
	</section>
<jsp:include page="/managerinc/footer.jsp"></jsp:include>